﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000079 RID: 121
	internal class InvalidArrayHeader : IArrayHeaderDecoder
	{
		// Token: 0x0600022C RID: 556 RVA: 0x0000B1D1 File Offset: 0x000095D1
		private InvalidArrayHeader()
		{
		}

		// Token: 0x0600022D RID: 557 RVA: 0x0000B1D9 File Offset: 0x000095D9
		public uint Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000A3 RID: 163
		internal static readonly IArrayHeaderDecoder Instance = new InvalidArrayHeader();
	}
}
